﻿#include "Server.MiningInfoForm.h"
#include "../Server.SMain.h"
#include "../../Server/Settings.h"
#include "../../Server/MirDatabase/MineInfo.h"

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;

namespace Server
{

    Server::MirEnvir::Envir *MiningInfoForm::getEnvir() const
    {
        return SMain::getEditEnvir();
    }

    MiningInfoForm::MiningInfoForm()
    {
        InitializeComponent();

        for (int i = 0; i < Settings::MineSetList.size(); i++)
        {
            ListItem tempVar(Settings::MineSetList[i]->Name, std::to_string(i + 1));
            MineIndexcomboBox->Items->Add(&tempVar);
        }
        //MineIndexcomboBox.Items.Add(i+1);

        UpdateMines();

    }

    void MiningInfoForm::MiningInfoForm_FormClosed(std::any sender, FormClosedEventArgs *e)
    {
        if (MinesChanged)
        {
            Settings::SaveMines();
        }
    }

    void MiningInfoForm::UpdateMines()
    {
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            MineDropsIndexcomboBox->Items->Clear();
            MineNametextBox->Text = "";
            MineRegenDelaytextBox->Text = "";
            MineAttemptstextBox->Text = "";
            MineHitRatetextBox->Text = "";
            MineDropRatetextBox->Text = "";
            MineSlotstextBox->Text = "";
            MineItemNametextBox->Text = "";
            MineMinSlottextBox->Text = "";
            MineMaxSlottextBox->Text = "";
            MineMinQualitytextBox->Text = "";
            MineMaxQualitytextBox->Text = "";
            MineBonusChancetextBox->Text = "";
            MineMaxBonustextBox->Text = "";
        }
        else
        {
            if (MineIndexcomboBox->SelectedIndex >= Settings::MineSetList.size())
            {
                MineIndexcomboBox->SelectedItem = nullptr;
                UpdateMines();
                return;
            }
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            MineNametextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Name.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            MineRegenDelaytextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->SpotRegenRate.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            MineAttemptstextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->MaxStones.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            MineHitRatetextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->HitRate.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            MineDropRatetextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->DropRate.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
            MineSlotstextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->TotalSlots.ToString();
            if (MineDropsIndexcomboBox->SelectedIndex >= Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops.size())
            {
                MineDropsIndexcomboBox->SelectedItem = nullptr;
            }
            if (MineDropsIndexcomboBox->SelectedItem == nullptr)
            {
                MineItemNametextBox->Text = "";
                MineMinSlottextBox->Text = "";
                MineMaxSlottextBox->Text = "";
                MineMinQualitytextBox->Text = "";
                MineMaxQualitytextBox->Text = "";
                MineBonusChancetextBox->Text = "";
                MineMaxBonustextBox->Text = "";
            }
            else
            {
                MineItemNametextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex].ItemName;
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
                MineMinSlottextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex].MinSlot.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
                MineMaxSlottextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex].MaxSlot.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
                MineMinQualitytextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex].MinDura.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
                MineMaxQualitytextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex].MaxDura.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
                MineBonusChancetextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex].BonusChance.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
                MineMaxBonustextBox->Text = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex].MaxBonusDura.ToString();
            }

        }
    }

    void MiningInfoForm::MineIndexcomboBox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        MineDropsIndexcomboBox->Items->Clear();
        if (MineIndexcomboBox->SelectedIndex < Settings::MineSetList.size())
        {
            for (int i = 0; i < Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops.size(); i++)
            {
                MineDropsIndexcomboBox->Items->Add(i);
            }
        }
        UpdateMines();
    }

    void MiningInfoForm::MineAddIndexbutton_Click(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        MinesChanged = true;
        MineSet tempVar();
        Settings::MineSetList.push_back(&tempVar);
        ListItem tempVar2("", std::to_string(Settings::MineSetList.size()));
        MineIndexcomboBox->Items->Add(&tempVar2);
        MineIndexcomboBox->SelectedIndex = Settings::MineSetList.size() - 1;
        MineDropsIndexcomboBox->Items->Clear();
        UpdateMines();
    }

    void MiningInfoForm::MineRemoveIndexbutton_Click(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MessageBox::Show("Are you sure you want to delete the last index?", "Delete?", MessageBoxButtons::YesNo) != System::Windows::Forms::DialogResult::Yes)
        {
            return;
        }
        MinesChanged = true;
        MineIndexcomboBox->Items->RemoveAt(Settings::MineSetList.size() - 1);
        Settings::MineSetList.pop_back();
        UpdateMines();
    }

    void MiningInfoForm::MineRegenDelaytextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->SpotRegenRate = temp;
    }

    void MiningInfoForm::MineAttemptstextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->MaxStones = temp;
    }

    void MiningInfoForm::MineSlotstextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->TotalSlots = temp;
    }

    void MiningInfoForm::MineHitRatetextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->HitRate = temp;
    }

    void MiningInfoForm::MineDropRatetextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->DropRate = temp;
    }

    void MiningInfoForm::MineDropsIndexcomboBox_SelectedIndexChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        UpdateMines();
    }

    void MiningInfoForm::MineAddDropbutton_Click(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        MinesChanged = true;
        MineDrop tempVar();
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops.push_back(&tempVar);
        MineDropsIndexcomboBox->Items->Add(Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops.size() - 1);
        MineDropsIndexcomboBox->SelectedIndex = Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops.size() - 1;
    }

    void MiningInfoForm::MineRemoveDropbutton_Click(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MessageBox::Show("Are you sure you want to delete the last index?", "Delete?", MessageBoxButtons::YesNo) != System::Windows::Forms::DialogResult::Yes)
        {
            return;
        }
        MinesChanged = true;
        MineDropsIndexcomboBox->Items->Remove(Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops.size() - 1);
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops.pop_back();
        UpdateMines();
    }

    void MiningInfoForm::MineItemNametextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        if (MineDropsIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        std::string temp = ActiveControl->Text;

        ActiveControl->BackColor = Color::Red;
        for (int i = 0; i < SMain::getEditEnvir()->ItemInfoList.size(); i++)
        {
            if (SMain::getEditEnvir()->ItemInfoList[i]->Name == temp)
            {
                ActiveControl->BackColor = SystemColors::Window;
                break;
            }
        }
        if (ActiveControl->BackColor == Color::Red)
        {
            return;
        }

        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex]->ItemName = temp;
    }

    void MiningInfoForm::MineMinSlottextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        if (MineDropsIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex]->MinSlot = temp;
    }

    void MiningInfoForm::MineMaxSlottextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        if (MineDropsIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex]->MaxSlot = temp;
    }

    void MiningInfoForm::MineMinQualitytextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        if (MineDropsIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex]->MinDura = temp;
    }

    void MiningInfoForm::MineMaxQualitytextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        if (MineDropsIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex]->MaxDura = temp;
    }

    void MiningInfoForm::MineBonusChancetextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        if (MineDropsIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex]->BonusChance = temp;
    }

    void MiningInfoForm::MineMaxBonustextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        if (MineDropsIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        unsigned char temp;

        if (!unsigned char::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Drops[MineDropsIndexcomboBox->SelectedIndex]->MaxBonusDura = temp;
    }

    void MiningInfoForm::MineNametextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        if (MineIndexcomboBox->SelectedItem == nullptr)
        {
            return;
        }
        std::string temp = ActiveControl->Text;

        ActiveControl->BackColor = SystemColors::Window;
        MinesChanged = true;
        Settings::MineSetList[MineIndexcomboBox->SelectedIndex]->Name = temp;

        MineIndexcomboBox->Refresh();
    }

    void MiningInfoForm::Dispose(bool disposing)
    {
        if (disposing && (components != nullptr))
        {
            components->Dispose();
        }
        System::Windows::Forms::Form::Dispose(disposing);
    }

    void MiningInfoForm::InitializeComponent()
    {
        this->tabControl1 = new System::Windows::Forms::TabControl();
        this->tabPage1 = new System::Windows::Forms::TabPage();
        this->groupBox7 = new System::Windows::Forms::GroupBox();
        this->label79 = new System::Windows::Forms::Label();
        this->MineNametextBox = new System::Windows::Forms::TextBox();
        this->MineSlotstextBox = new System::Windows::Forms::TextBox();
        this->label70 = new System::Windows::Forms::Label();
        this->label69 = new System::Windows::Forms::Label();
        this->label68 = new System::Windows::Forms::Label();
        this->MineDropRatetextBox = new System::Windows::Forms::TextBox();
        this->MineHitRatetextBox = new System::Windows::Forms::TextBox();
        this->MineAttemptstextBox = new System::Windows::Forms::TextBox();
        this->MineRegenDelaytextBox = new System::Windows::Forms::TextBox();
        this->label67 = new System::Windows::Forms::Label();
        this->label66 = new System::Windows::Forms::Label();
        this->label65 = new System::Windows::Forms::Label();
        this->tabPage2 = new System::Windows::Forms::TabPage();
        this->label78 = new System::Windows::Forms::Label();
        this->MineDropsIndexcomboBox = new System::Windows::Forms::ComboBox();
        this->groupBox8 = new System::Windows::Forms::GroupBox();
        this->MineMaxBonustextBox = new System::Windows::Forms::TextBox();
        this->label77 = new System::Windows::Forms::Label();
        this->MineBonusChancetextBox = new System::Windows::Forms::TextBox();
        this->label76 = new System::Windows::Forms::Label();
        this->MineMaxQualitytextBox = new System::Windows::Forms::TextBox();
        this->label75 = new System::Windows::Forms::Label();
        this->MineMinQualitytextBox = new System::Windows::Forms::TextBox();
        this->label74 = new System::Windows::Forms::Label();
        this->MineMaxSlottextBox = new System::Windows::Forms::TextBox();
        this->label73 = new System::Windows::Forms::Label();
        this->MineMinSlottextBox = new System::Windows::Forms::TextBox();
        this->label72 = new System::Windows::Forms::Label();
        this->MineItemNametextBox = new System::Windows::Forms::TextBox();
        this->label71 = new System::Windows::Forms::Label();
        this->MineRemoveDropbutton = new System::Windows::Forms::Button();
        this->MineAddDropbutton = new System::Windows::Forms::Button();
        this->MineRemoveIndexbutton = new System::Windows::Forms::Button();
        this->MineAddIndexbutton = new System::Windows::Forms::Button();
        this->MineIndexcomboBox = new System::Windows::Forms::ComboBox();
        this->label64 = new System::Windows::Forms::Label();
        this->tabControl1->SuspendLayout();
        this->tabPage1->SuspendLayout();
        this->groupBox7->SuspendLayout();
        this->tabPage2->SuspendLayout();
        this->groupBox8->SuspendLayout();
        this->SuspendLayout();
        // 
        // tabControl1
        // 
        this->tabControl1->Controls->Add(this->tabPage1);
        this->tabControl1->Controls->Add(this->tabPage2);
        this->tabControl1->Location = new System::Drawing::Point(12, 33);
        this->tabControl1->Name = "tabControl1";
        this->tabControl1->SelectedIndex = 0;
        this->tabControl1->Size = new System::Drawing::Size(427, 263);
        this->tabControl1->TabIndex = 0;
        // 
        // tabPage1
        // 
        this->tabPage1->Controls->Add(this->groupBox7);
        this->tabPage1->Location = new System::Drawing::Point(4, 22);
        this->tabPage1->Name = "tabPage1";
        this->tabPage1->Padding = new System::Windows::Forms::Padding(3);
        this->tabPage1->Size = new System::Drawing::Size(419, 237);
        this->tabPage1->TabIndex = 0;
        this->tabPage1->Text = "Stats";
        this->tabPage1->UseVisualStyleBackColor = true;
        // 
        // groupBox7
        // 
        this->groupBox7->Controls->Add(this->label79);
        this->groupBox7->Controls->Add(this->MineNametextBox);
        this->groupBox7->Controls->Add(this->MineSlotstextBox);
        this->groupBox7->Controls->Add(this->label70);
        this->groupBox7->Controls->Add(this->label69);
        this->groupBox7->Controls->Add(this->label68);
        this->groupBox7->Controls->Add(this->MineDropRatetextBox);
        this->groupBox7->Controls->Add(this->MineHitRatetextBox);
        this->groupBox7->Controls->Add(this->MineAttemptstextBox);
        this->groupBox7->Controls->Add(this->MineRegenDelaytextBox);
        this->groupBox7->Controls->Add(this->label67);
        this->groupBox7->Controls->Add(this->label66);
        this->groupBox7->Controls->Add(this->label65);
        this->groupBox7->Location = new System::Drawing::Point(10, 6);
        this->groupBox7->Name = "groupBox7";
        this->groupBox7->Size = new System::Drawing::Size(403, 121);
        this->groupBox7->TabIndex = 27;
        this->groupBox7->TabStop = false;
        this->groupBox7->Text = "Mine Base Stat";
        // 
        // label79
        // 
        this->label79->AutoSize = true;
        this->label79->Location = new System::Drawing::Point(8, 19);
        this->label79->Name = "label79";
        this->label79->Size = new System::Drawing::Size(38, 13);
        this->label79->TabIndex = 23;
        this->label79->Text = "Name:";
        // 
        // MineNametextBox
        // 
        this->MineNametextBox->Location = new System::Drawing::Point(97, 16);
        this->MineNametextBox->Name = "MineNametextBox";
        this->MineNametextBox->Size = new System::Drawing::Size(100, 20);
        this->MineNametextBox->TabIndex = 22;
        this->MineNametextBox->TextChanged += new System::EventHandler(this->MineNametextBox_TextChanged);
        // 
        // MineSlotstextBox
        // 
        this->MineSlotstextBox->Location = new System::Drawing::Point(97, 92);
        this->MineSlotstextBox->Name = "MineSlotstextBox";
        this->MineSlotstextBox->Size = new System::Drawing::Size(34, 20);
        this->MineSlotstextBox->TabIndex = 10;
        this->MineSlotstextBox->TextChanged += new System::EventHandler(this->MineSlotstextBox_TextChanged);
        // 
        // label70
        // 
        this->label70->AutoSize = true;
        this->label70->Location = new System::Drawing::Point(6, 95);
        this->label70->Name = "label70";
        this->label70->Size = new System::Drawing::Size(33, 13);
        this->label70->TabIndex = 9;
        this->label70->Text = "Slots:";
        // 
        // label69
        // 
        this->label69->AutoSize = true;
        this->label69->Location = new System::Drawing::Point(286, 45);
        this->label69->Name = "label69";
        this->label69->Size = new System::Drawing::Size(56, 13);
        this->label69->TabIndex = 8;
        this->label69->Text = "DropRate:";
        // 
        // label68
        // 
        this->label68->AutoSize = true;
        this->label68->Location = new System::Drawing::Point(286, 19);
        this->label68->Name = "label68";
        this->label68->Size = new System::Drawing::Size(46, 13);
        this->label68->TabIndex = 7;
        this->label68->Text = "HitRate:";
        // 
        // MineDropRatetextBox
        // 
        this->MineDropRatetextBox->Location = new System::Drawing::Point(362, 42);
        this->MineDropRatetextBox->Name = "MineDropRatetextBox";
        this->MineDropRatetextBox->Size = new System::Drawing::Size(34, 20);
        this->MineDropRatetextBox->TabIndex = 6;
        this->MineDropRatetextBox->TextChanged += new System::EventHandler(this->MineDropRatetextBox_TextChanged);
        // 
        // MineHitRatetextBox
        // 
        this->MineHitRatetextBox->Location = new System::Drawing::Point(362, 16);
        this->MineHitRatetextBox->Name = "MineHitRatetextBox";
        this->MineHitRatetextBox->Size = new System::Drawing::Size(34, 20);
        this->MineHitRatetextBox->TabIndex = 5;
        this->MineHitRatetextBox->TextChanged += new System::EventHandler(this->MineHitRatetextBox_TextChanged);
        // 
        // MineAttemptstextBox
        // 
        this->MineAttemptstextBox->Location = new System::Drawing::Point(97, 68);
        this->MineAttemptstextBox->Name = "MineAttemptstextBox";
        this->MineAttemptstextBox->Size = new System::Drawing::Size(34, 20);
        this->MineAttemptstextBox->TabIndex = 4;
        this->MineAttemptstextBox->TextChanged += new System::EventHandler(this->MineAttemptstextBox_TextChanged);
        // 
        // MineRegenDelaytextBox
        // 
        this->MineRegenDelaytextBox->Location = new System::Drawing::Point(97, 42);
        this->MineRegenDelaytextBox->Name = "MineRegenDelaytextBox";
        this->MineRegenDelaytextBox->Size = new System::Drawing::Size(34, 20);
        this->MineRegenDelaytextBox->TabIndex = 3;
        this->MineRegenDelaytextBox->TextChanged += new System::EventHandler(this->MineRegenDelaytextBox_TextChanged);
        // 
        // label67
        // 
        this->label67->AutoSize = true;
        this->label67->Location = new System::Drawing::Point(8, 71);
        this->label67->Name = "label67";
        this->label67->Size = new System::Drawing::Size(83, 13);
        this->label67->TabIndex = 2;
        this->label67->Text = "Attempts/regen:";
        // 
        // label66
        // 
        this->label66->AutoSize = true;
        this->label66->Location = new System::Drawing::Point(148, 45);
        this->label66->Name = "label66";
        this->label66->Size = new System::Drawing::Size(49, 13);
        this->label66->TabIndex = 1;
        this->label66->Text = "(minutes)";
        // 
        // label65
        // 
        this->label65->AutoSize = true;
        this->label65->Location = new System::Drawing::Point(8, 45);
        this->label65->Name = "label65";
        this->label65->Size = new System::Drawing::Size(70, 13);
        this->label65->TabIndex = 0;
        this->label65->Text = "Regen delay:";
        // 
        // tabPage2
        // 
        this->tabPage2->Controls->Add(this->label78);
        this->tabPage2->Controls->Add(this->MineDropsIndexcomboBox);
        this->tabPage2->Controls->Add(this->groupBox8);
        this->tabPage2->Controls->Add(this->MineRemoveDropbutton);
        this->tabPage2->Controls->Add(this->MineAddDropbutton);
        this->tabPage2->Location = new System::Drawing::Point(4, 22);
        this->tabPage2->Name = "tabPage2";
        this->tabPage2->Size = new System::Drawing::Size(419, 237);
        this->tabPage2->TabIndex = 1;
        this->tabPage2->Text = "Drops";
        this->tabPage2->UseVisualStyleBackColor = true;
        // 
        // label78
        // 
        this->label78->AutoSize = true;
        this->label78->Location = new System::Drawing::Point(7, 40);
        this->label78->Name = "label78";
        this->label78->Size = new System::Drawing::Size(38, 13);
        this->label78->TabIndex = 26;
        this->label78->Text = "Drops:";
        // 
        // MineDropsIndexcomboBox
        // 
        this->MineDropsIndexcomboBox->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->MineDropsIndexcomboBox->FormattingEnabled = true;
        this->MineDropsIndexcomboBox->Location = new System::Drawing::Point(12, 12);
        this->MineDropsIndexcomboBox->Name = "MineDropsIndexcomboBox";
        this->MineDropsIndexcomboBox->Size = new System::Drawing::Size(129, 21);
        this->MineDropsIndexcomboBox->TabIndex = 22;
        this->MineDropsIndexcomboBox->SelectedIndexChanged += new System::EventHandler(this->MineDropsIndexcomboBox_SelectedIndexChanged);
        // 
        // groupBox8
        // 
        this->groupBox8->Controls->Add(this->MineMaxBonustextBox);
        this->groupBox8->Controls->Add(this->label77);
        this->groupBox8->Controls->Add(this->MineBonusChancetextBox);
        this->groupBox8->Controls->Add(this->label76);
        this->groupBox8->Controls->Add(this->MineMaxQualitytextBox);
        this->groupBox8->Controls->Add(this->label75);
        this->groupBox8->Controls->Add(this->MineMinQualitytextBox);
        this->groupBox8->Controls->Add(this->label74);
        this->groupBox8->Controls->Add(this->MineMaxSlottextBox);
        this->groupBox8->Controls->Add(this->label73);
        this->groupBox8->Controls->Add(this->MineMinSlottextBox);
        this->groupBox8->Controls->Add(this->label72);
        this->groupBox8->Controls->Add(this->MineItemNametextBox);
        this->groupBox8->Controls->Add(this->label71);
        this->groupBox8->Location = new System::Drawing::Point(10, 39);
        this->groupBox8->Name = "groupBox8";
        this->groupBox8->Size = new System::Drawing::Size(188, 188);
        this->groupBox8->TabIndex = 25;
        this->groupBox8->TabStop = false;
        // 
        // MineMaxBonustextBox
        // 
        this->MineMaxBonustextBox->Location = new System::Drawing::Point(99, 151);
        this->MineMaxBonustextBox->Name = "MineMaxBonustextBox";
        this->MineMaxBonustextBox->Size = new System::Drawing::Size(34, 20);
        this->MineMaxBonustextBox->TabIndex = 34;
        this->MineMaxBonustextBox->TextChanged += new System::EventHandler(this->MineMaxBonustextBox_TextChanged);
        // 
        // label77
        // 
        this->label77->AutoSize = true;
        this->label77->Location = new System::Drawing::Point(10, 154);
        this->label77->Name = "label77";
        this->label77->Size = new System::Drawing::Size(84, 13);
        this->label77->TabIndex = 33;
        this->label77->Text = "Maximum Bonus";
        // 
        // MineBonusChancetextBox
        // 
        this->MineBonusChancetextBox->Location = new System::Drawing::Point(99, 127);
        this->MineBonusChancetextBox->Name = "MineBonusChancetextBox";
        this->MineBonusChancetextBox->Size = new System::Drawing::Size(34, 20);
        this->MineBonusChancetextBox->TabIndex = 32;
        this->MineBonusChancetextBox->TextChanged += new System::EventHandler(this->MineBonusChancetextBox_TextChanged);
        // 
        // label76
        // 
        this->label76->AutoSize = true;
        this->label76->Location = new System::Drawing::Point(10, 130);
        this->label76->Name = "label76";
        this->label76->Size = new System::Drawing::Size(77, 13);
        this->label76->TabIndex = 31;
        this->label76->Text = "Bonus Chance";
        // 
        // MineMaxQualitytextBox
        // 
        this->MineMaxQualitytextBox->Location = new System::Drawing::Point(99, 104);
        this->MineMaxQualitytextBox->Name = "MineMaxQualitytextBox";
        this->MineMaxQualitytextBox->Size = new System::Drawing::Size(34, 20);
        this->MineMaxQualitytextBox->TabIndex = 30;
        this->MineMaxQualitytextBox->TextChanged += new System::EventHandler(this->MineMaxQualitytextBox_TextChanged);
        // 
        // label75
        // 
        this->label75->AutoSize = true;
        this->label75->Location = new System::Drawing::Point(10, 107);
        this->label75->Name = "label75";
        this->label75->Size = new System::Drawing::Size(86, 13);
        this->label75->TabIndex = 29;
        this->label75->Text = "Maximum Quality";
        // 
        // MineMinQualitytextBox
        // 
        this->MineMinQualitytextBox->Location = new System::Drawing::Point(99, 81);
        this->MineMinQualitytextBox->Name = "MineMinQualitytextBox";
        this->MineMinQualitytextBox->Size = new System::Drawing::Size(34, 20);
        this->MineMinQualitytextBox->TabIndex = 28;
        this->MineMinQualitytextBox->TextChanged += new System::EventHandler(this->MineMinQualitytextBox_TextChanged);
        // 
        // label74
        // 
        this->label74->AutoSize = true;
        this->label74->Location = new System::Drawing::Point(10, 84);
        this->label74->Name = "label74";
        this->label74->Size = new System::Drawing::Size(83, 13);
        this->label74->TabIndex = 27;
        this->label74->Text = "Minimum Quality";
        // 
        // MineMaxSlottextBox
        // 
        this->MineMaxSlottextBox->Location = new System::Drawing::Point(99, 59);
        this->MineMaxSlottextBox->Name = "MineMaxSlottextBox";
        this->MineMaxSlottextBox->Size = new System::Drawing::Size(34, 20);
        this->MineMaxSlottextBox->TabIndex = 26;
        this->MineMaxSlottextBox->TextChanged += new System::EventHandler(this->MineMaxSlottextBox_TextChanged);
        // 
        // label73
        // 
        this->label73->AutoSize = true;
        this->label73->Location = new System::Drawing::Point(10, 62);
        this->label73->Name = "label73";
        this->label73->Size = new System::Drawing::Size(51, 13);
        this->label73->TabIndex = 25;
        this->label73->Text = "Max Slot:";
        // 
        // MineMinSlottextBox
        // 
        this->MineMinSlottextBox->Location = new System::Drawing::Point(99, 36);
        this->MineMinSlottextBox->Name = "MineMinSlottextBox";
        this->MineMinSlottextBox->Size = new System::Drawing::Size(34, 20);
        this->MineMinSlottextBox->TabIndex = 24;
        this->MineMinSlottextBox->TextChanged += new System::EventHandler(this->MineMinSlottextBox_TextChanged);
        // 
        // label72
        // 
        this->label72->AutoSize = true;
        this->label72->Location = new System::Drawing::Point(10, 39);
        this->label72->Name = "label72";
        this->label72->Size = new System::Drawing::Size(48, 13);
        this->label72->TabIndex = 23;
        this->label72->Text = "Min Slot:";
        // 
        // MineItemNametextBox
        // 
        this->MineItemNametextBox->Location = new System::Drawing::Point(99, 13);
        this->MineItemNametextBox->Name = "MineItemNametextBox";
        this->MineItemNametextBox->Size = new System::Drawing::Size(83, 20);
        this->MineItemNametextBox->TabIndex = 22;
        this->MineItemNametextBox->TextChanged += new System::EventHandler(this->MineItemNametextBox_TextChanged);
        // 
        // label71
        // 
        this->label71->AutoSize = true;
        this->label71->Location = new System::Drawing::Point(10, 16);
        this->label71->Name = "label71";
        this->label71->Size = new System::Drawing::Size(58, 13);
        this->label71->TabIndex = 21;
        this->label71->Text = "ItemName:";
        // 
        // MineRemoveDropbutton
        // 
        this->MineRemoveDropbutton->Location = new System::Drawing::Point(177, 12);
        this->MineRemoveDropbutton->Name = "MineRemoveDropbutton";
        this->MineRemoveDropbutton->Size = new System::Drawing::Size(21, 21);
        this->MineRemoveDropbutton->TabIndex = 24;
        this->MineRemoveDropbutton->Text = "-";
        this->MineRemoveDropbutton->UseVisualStyleBackColor = true;
        this->MineRemoveDropbutton->Click += new System::EventHandler(this->MineRemoveDropbutton_Click);
        // 
        // MineAddDropbutton
        // 
        this->MineAddDropbutton->Location = new System::Drawing::Point(148, 12);
        this->MineAddDropbutton->Name = "MineAddDropbutton";
        this->MineAddDropbutton->Size = new System::Drawing::Size(21, 21);
        this->MineAddDropbutton->TabIndex = 23;
        this->MineAddDropbutton->Text = "+";
        this->MineAddDropbutton->UseVisualStyleBackColor = true;
        this->MineAddDropbutton->Click += new System::EventHandler(this->MineAddDropbutton_Click);
        // 
        // MineRemoveIndexbutton
        // 
        this->MineRemoveIndexbutton->Location = new System::Drawing::Point(218, 6);
        this->MineRemoveIndexbutton->Name = "MineRemoveIndexbutton";
        this->MineRemoveIndexbutton->Size = new System::Drawing::Size(21, 21);
        this->MineRemoveIndexbutton->TabIndex = 26;
        this->MineRemoveIndexbutton->Text = "-";
        this->MineRemoveIndexbutton->UseVisualStyleBackColor = true;
        this->MineRemoveIndexbutton->Click += new System::EventHandler(this->MineRemoveIndexbutton_Click);
        // 
        // MineAddIndexbutton
        // 
        this->MineAddIndexbutton->Location = new System::Drawing::Point(189, 6);
        this->MineAddIndexbutton->Name = "MineAddIndexbutton";
        this->MineAddIndexbutton->Size = new System::Drawing::Size(21, 21);
        this->MineAddIndexbutton->TabIndex = 25;
        this->MineAddIndexbutton->Text = "+";
        this->MineAddIndexbutton->UseVisualStyleBackColor = true;
        this->MineAddIndexbutton->Click += new System::EventHandler(this->MineAddIndexbutton_Click);
        // 
        // MineIndexcomboBox
        // 
        this->MineIndexcomboBox->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
        this->MineIndexcomboBox->FormattingEnabled = true;
        this->MineIndexcomboBox->Location = new System::Drawing::Point(91, 6);
        this->MineIndexcomboBox->Name = "MineIndexcomboBox";
        this->MineIndexcomboBox->Size = new System::Drawing::Size(92, 21);
        this->MineIndexcomboBox->TabIndex = 23;
        this->MineIndexcomboBox->SelectedIndexChanged += new System::EventHandler(this->MineIndexcomboBox_SelectedIndexChanged);
        // 
        // label64
        // 
        this->label64->AutoSize = true;
        this->label64->Location = new System::Drawing::Point(13, 9);
        this->label64->Name = "label64";
        this->label64->Size = new System::Drawing::Size(62, 13);
        this->label64->TabIndex = 24;
        this->label64->Text = "Mine Index:";
        // 
        // MiningInfoForm
        // 
        this->ClientSize = new System::Drawing::Size(450, 305);
        this->Controls->Add(this->MineRemoveIndexbutton);
        this->Controls->Add(this->tabControl1);
        this->Controls->Add(this->MineAddIndexbutton);
        this->Controls->Add(this->label64);
        this->Controls->Add(this->MineIndexcomboBox);
        this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
        this->MaximizeBox = false;
        this->MinimizeBox = false;
        this->Name = "MiningInfoForm";
        this->Text = "MiningInfoForm";
        this->FormClosed += new System::Windows::Forms::FormClosedEventHandler(this->MiningInfoForm_FormClosed);
        this->tabControl1->ResumeLayout(false);
        this->tabPage1->ResumeLayout(false);
        this->groupBox7->ResumeLayout(false);
        this->groupBox7->PerformLayout();
        this->tabPage2->ResumeLayout(false);
        this->tabPage2->PerformLayout();
        this->groupBox8->ResumeLayout(false);
        this->groupBox8->PerformLayout();
        this->ResumeLayout(false);
        this->PerformLayout();

    }
}
